<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Calculator extends My_Controller {

    function __construct() {
        parent::__construct();
        $this->load->helper('osc');
        $this->load->helper('html');
        $this->config->load('osc_config', TRUE);
    }

    public function index() {
        
       
        // save caculator
        // buildStateDropdown
        $js_state = 'id="calculator-state" ';
        $data['state'] = buildStateDropdown('calculator-state', $this->input->post('calculator-state'), 'QLD', $js_state);

        // buildStateDropdown
        $js_sales = 'id="calculator-sales"';
        $data['sales'] = buildSalesDropdown('calculator-sales', $this->input->post('calculator-sales'), '$250,000', $js_sales);

        
        $this->navigation->loadCalculatorView($data);
    }

}

/* End of file aboutus.php */
/* Location: ./application/controllers/aboutus.php */